-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix reading msvs version on Windows #2644
Conversation
2ac9350
to
cc58bcf
Compare
@StefanStojanovic Your review, please. Also, what are the currently supported values for MSVS? Why is this in our tests? node-gyp/.github/workflows/tests.yml Lines 46 to 47 in bb76021
|
I've made a draft PR to test this. From what I see, it is required for Python tests to pass. The same code exists in the |
The change looks good. @jgcook935 could you rebase to the latest main (will require rewriting your test to mocha) so it can run through CI, please? |
@jgcook935 I can go ahead and apply the changes I mentioned above and move this forward. Please let me know if you want to do it yourself. Thanks. |
cc58bcf
to
376c39d
Compare
After rebasing and rewriting the test to mocha everything's good. I'm planning to land this on Friday unless someone objects before that. |
* fix: fix reading msvs version on windows
npm install && npm test
passesDescription of change
Ever since #2547 went in for version 9 our Windows machines can't properly read msvs_version from the .npmrc. Since names with '_' are now changed to '-' we need to change the opts definition. If there's a different way you'd like to handle this let me know and I can update.